import QtQuick
import QtQuick.Controls
import QtQuick3D

import QtQuickRO
import QtQuick3D.Physics

import "../Actors"
import "../PlayerController"
import "../Character"
import "./Room"
import "./RoomCave" as Cave
import Utils
import MineCraftUtils
import QtQuick3D.Helpers
import Quick3DAssets.Home

Node {
    id: scene

    property alias playerSpawner:playerSpawner
    property alias characterComp:playerSpawner.sourceComponent//玩家角色组件
    EntitySpawner{//玩家出生点
        id:playerSpawner

        y:200
        x:100 * 5
        z:100 * 5
    }

    Cave.Controller{

    }

    PhysicsWorld {//物理效果
        id: physicsWorld
        running: true
        scene: scene
        //forceDebugDraw: true
    }

    Node {
        id: __materialLibrary__
    }
    //场景灯光
    PointLight {
        id: pointLight
        x: 872.866
        y: 386.047
        color: "#fcd59b"
        brightness: 3
        castsShadow: true
        shadowMapQuality: Light.ShadowMapQualityLow
        quadraticFade: 0.32487
        z: 811.85925
    }
}

/*##^##
Designer {
    D{i:0;cameraSpeed3d:25;cameraSpeed3dMultiplier:1}
}
##^##*/
